package mfuny.ggongal.admin;

import javax.servlet.http.HttpSession;

import mfuny.ggongal.admin.login.LoginService;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class LoginController {
	
	LoginService login;
	
	public LoginController() throws Exception {
		login = new LoginService();
	}
	
	@RequestMapping("/login.ga")
	public ModelAndView login() throws Exception {
		return login.login( );
	}
	
	@RequestMapping("/loginPro.ga")
	public ModelAndView loginPro( String id, String password, HttpSession session ) throws Exception {
		return login.loginPro( id, password, session );
	}
	
	@RequestMapping("/logoutPro.ga")
	public ModelAndView logoutPro( HttpSession session ) throws Exception {
		return login.logoutPro( session );
	}
}
